π― Technical Rigor, Engineering Depth & Applied Industry Telemetry
Enterprise cybersecurity interviews assess more than surface-level definitions. Modern Tier-2/3 SOC analysts, threat hunters, penetration testers, cloud security architects, and GRC engineers are expected to demonstrate structural comprehension of low-level protocols, memory structures, threat models, and programmatic mitigations. Below are 100 comprehensive technical interview questions categorized across 7 core disciplines, formatted with direct copy-to-clipboard functionality for rapid reference and study.
Q1: Explain the 7 layers of the OSI model and their primary security concerns.
ANSWER:
β’ Physical (Layer 1): Cabling, radio frequencies, hardware taps.
- Threats: Physical hardware tapping, wiretapping, cable severing, rogue hardware devices.
β’ Data Link (Layer 2): Frame encapsulation, MAC addressing, local switching.
- Threats: MAC flooding, ARP cache poisoning, VLAN hopping (DTP spoofing, double tagging).
β’ Network (Layer 3): Logical IP routing, packet fragmentation.
- Threats: IP address spoofing, ICMP redirect attacks, BGP route hijacking, teardrop attacks.
β’ Transport (Layer 4): End-to-end transport (TCP/UDP), port multiplexing.
- Threats: TCP SYN flood DDoS, port scanning, session hijacking, reset attacks.
β’ Session (Layer 5): Session establishment, maintenance, and teardown.
- Threats: Session token interception, RPC vulnerabilities, brute-force session attacks.
β’ Presentation (Layer 6): Data representation, serialization, compression, and encryption/TLS.
- Threats: Malicious TLS certificate manipulation, format string attacks, insecure deserialization.
β’ Application (Layer 7): Human-facing services and APIs (HTTP, DNS, SSH, SMTP).
- Threats: SQL injection, Cross-Site Scripting (XSS), DNS tunneling, application DDoS.
Q2: What happens step-by-step during a standard TCP 3-Way Handshake?
ANSWER:
Step 1 (SYN): The client selects an Initial Sequence Number (ISN), say X, sets the SYN flag in the TCP header, and sends the packet to the server's listening port. Client state transitions to SYN-SENT.
Step 2 (SYN-ACK): The server receives the SYN, allocates socket memory buffers, chooses its own ISN (Y), sets both SYN and ACK flags, sets Acknowledgment Number = X + 1, and responds. Server state transitions to SYN-RECEIVED.
Step 3 (ACK): The client receives the SYN-ACK, sets the ACK flag, sets Sequence Number = X + 1 and Acknowledgment Number = Y + 1, and transmits it back. Both client and server sockets transition to the ESTABLISHED state, and bidirectional data transmission commences.
Q3: How does ARP poisoning work, and how can it be mitigated?
ANSWER:
Address Resolution Protocol (ARP) translates Layer 3 IP addresses to Layer 2 MAC addresses across local broadcast domains without authentication. An attacker transmits unsolicited (gratuitous) ARP replies mapping the target default gateway's IP address to the attacker's network card MAC address. Surviving cache updates force victim endpoints to route all outbound traffic through the attacker (Man-in-the-Middle).
MITIGATION:
1. Dynamic ARP Inspection (DAI): Switch hardware checks incoming ARP packets against a trusted DHCP Snooping binding database, dropping unmapped frames.
2. Static ARP Bindings: Hardcoding critical gateway MAC addresses on high-value servers.
3. 802.1X Port Authentication: Restricts rogue host network port connections.
Q4: Differentiate between a Stateful Firewall, a Stateless Firewall, and a Next-Generation Firewall (NGFW).
ANSWER:
β’ Stateless Firewall: Filters individual packets against static Access Control Lists (ACLs) using source/destination IP, port, and protocol headers. Evaluates each packet in isolation with zero memory of preceding packets.
β’ Stateful Firewall: Maintains an active dynamic state table tracking connection lifecycles (NEW, ESTABLISHED, RELATED). Automatically permits return packets matching verified outbound TCP/UDP sessions while dropping unsolicited incoming packets.
β’ Next-Generation Firewall (NGFW): Integrates stateful inspection with deep packet inspection (DPI), Layer 7 application awareness, inline Intrusion Prevention Systems (IPS), TLS decryption/inspection, and dynamic threat intelligence feeds.
Q5: Walk through the full cryptographic TLS 1.3 handshake.
ANSWER:
TLS 1.3 simplifies the handshake down to 1 Round Trip Time (1-RTT) and enforces forward secrecy:
1. Client Hello: Client transmits supported cipher suites, a random nonce, and speculative key shares (Diffie-Hellman parameters using ECDHE groups like X25519).
2. Server Hello: Server selects the matching cipher suite, generates its own key share, and derives the shared secret. From this point forward, handshake traffic is encrypted.
3. Encrypted Server Data: Server transmits EncryptedExtensions, its X.509 Certificate, a CertificateVerify message (cryptographic signature over the transcript), and a Finished message.
4. Client Verification & Finished: Client validates the certificate path, verifies the signature, derives symmetric keys, and responds with its Finished message. Application data flows immediately.
Q6: What is DNS Tunneling, and how do you detect it in network telemetry?
ANSWER:
DNS Tunneling encodes non-DNS protocol payloads (SSH, C2 beacons, exfiltrated files) into standard DNS query fields (TXT, CNAME, A). Client malware issues lookups like <base64_data>.attacker-c2.com; the recursive resolver routes queries to the attacker's authoritative nameserver, bypassing perimeter egress firewalls.
DETECTION TELEMETRY:
β’ Shannon Entropy: Computing high information entropy across query subdomains (e.g., random hex/base64 strings).
β’ FQDN Length: Queries approaching the 253-character FQDN or 63-character label limits.
β’ High Query Volume: Thousands of unique, non-repeating subdomains queried under a single root domain.
β’ Record Distribution: Anomalous spikes in TXT and NULL record requests compared to standard A/AAAA lookups.
Q7: How does BGP hijacking occur, and what is RPKI?
ANSWER:
Border Gateway Protocol (BGP) governs inter-Autonomous System (AS) internet routing based on trust. BGP hijacking occurs when a rogue or misconfigured AS advertises unauthorized IP address prefixes (or announces a more specific subnet, such as a /24 instead of a /22). Global BGP routers adopt the more specific path, redirecting global internet traffic through the attacker's infrastructure for interception or blackholing.
REMEDIATION (RPKI):
Resource Public Key Infrastructure (RPKI) is a cryptographic public key framework where regional internet registries sign Route Origin Authorizations (ROAs). BGP routers validate received route announcements against cryptographically verified origin ASNs, dropping invalid route advertisements.
Q8: What is the difference between a Proxy, a Reverse Proxy, and a Bastion Host?
ANSWER:
β’ Forward Proxy: Sits in front of internal clients. Brokers outbound requests to the external internet, masks internal IP addresses, enforces corporate content policies, and caches web traffic.
β’ Reverse Proxy: Sits in front of internal web servers. Receives incoming external traffic, routes it to internal backend servers, manages load balancing, provides SSL/TLS termination, and shields backend architecture.
β’ Bastion Host (Jump Box): A hardened, dedicated server located in a DMZ acting as the singular, audit-logged entry point for administrators connecting from external networks into internal management subnets via SSH or RDP.
Q9: How do VLANs isolate traffic, and what is VLAN Hopping?
ANSWER:
Virtual Local Area Networks (VLANs / IEEE 802.1Q) partition a physical switch into distinct logical broadcast domains by appending a 4-byte 802.1Q tag (including a 12-bit VLAN ID) to Ethernet frames.
VLAN HOPPING EXPLOITS:
1. Switch Spoofing: An attacker configures their network card to emulate a switch and negotiates an 802.1Q trunk link via Dynamic Trunking Protocol (DTP), gaining access to all routed VLAN traffic.
2. Double Tagging: The attacker prepends two 802.1Q tags to a frame (Outer Tag = Native VLAN, Inner Tag = Target Victim VLAN). The first switch strips the outer native tag and forwards the inner-tagged packet directly across the trunk link to the victim switch, which routes it into the target VLAN.
Q10: Explain the role of MTU, MSS, and Path MTU Discovery in network security.
ANSWER:
β’ MTU (Maximum Transmission Unit): The largest physical Layer 2/3 packet size (typically 1500 bytes for standard Ethernet).
β’ MSS (Maximum Segment Size): The maximum TCP payload a host accepts in a single unfragmented segment (MTU - 40 bytes IP/TCP headers = 1460 bytes).
β’ Path MTU Discovery (PMTUD): Discovers the smallest MTU across an end-to-end path by sending packets with the Don't Fragment (DF) bit set. Intermediate routers needing fragmentation respond with ICMP Type 3, Code 4 ("Fragmentation Needed").
SECURITY IMPACT:
Indiscriminately dropping all ICMP packets at perimeter firewalls creates "Black Hole Routers": PMTUD fails, and large packets (such as post-quantum TLS certificates or VPN tunnels) are dropped silently without notification, causing connections to stall.
Q11: What is an Anycast network, and how does it assist in DDoS mitigation?
ANSWER:
Anycast assigns the identical IP address to multiple geographically distributed server nodes across the globe. Border Gateway Protocol (BGP) routes client traffic to the topologically nearest physical point-of-presence (PoP) based on shortest AS-Path and routing metrics.
DDoS MITIGATION BENEFIT:
Under large volumetric distributed denial-of-service attacks, malicious traffic is partitioned and distributed across global edge nodes rather than converging on a single data center. Each PoP absorbs its regional slice of the attack volume, preventing network link saturation.
Q12: Compare Port Mirroring (SPAN), RSPAN, and Network TAPs.
ANSWER:
β’ SPAN (Switched Port Analyzer): Software feature on a switch that copies traffic from selected ports to a local monitoring port. Downsides: Drops packets when the destination port saturates; consumes switch CPU cycles.
β’ RSPAN (Remote SPAN): Transports mirrored traffic across multiple physical switches over a specialized dedicated RSPAN VLAN.
β’ Network TAP (Test Access Point): A physical, passive hardware device spliced directly into the physical network cable. Completely immune to software crashes, introduces zero packet loss, maintains exact packet timing, and cannot be detected on the network.
Q13: What is the function of the TCP Window Size, and how is it exploited?
ANSWER:
The TCP Window Size field advertises the volume of unacknowledged data (in bytes) a receiver can hold in its buffer before the sender must wait for an acknowledgment (flow control).
EXPLOITATION (SOCKSTRESS ATTACK):
An attacker establishes full three-way TCP handshakes with a web server, but sets their advertised Window Size to 0 or a minuscule value (e.g., 4 bytes). The server keeps the socket open, maintains allocated buffer space, and consumes resources continuously probing the client with zero-window probes. A relatively small attack machine can exhaust a server's entire socket pool and memory tables without consuming large network bandwidth.
Q14: What are the key differences between IPv4 and IPv6 from a security standpoint?
ANSWER:
β’ Address Space & Reconnaissance: IPv4 (32-bit, ~4.3 billion IPs) allows full internet port scanning in hours. IPv6 (128-bit) provides 2^128 addresses, rendering brute-force network address scanning mathematically impractical.
β’ Neighbor Discovery Protocol (NDP): IPv6 replaces ARP with ICMPv6 Neighbor Discovery. Unprotected NDP is vulnerable to rogue router advertisements and spoofing, requiring Secure Neighbor Discovery (SEND).
β’ IPsec Integration: Built natively into the IPv6 architectural standard, whereas it was retrofitted into IPv4.
β’ End-to-End Transparency: IPv6 eliminates NAT in standard architectures; devices possess globally routable addresses, increasing reliance on strict host-level and perimeter firewall rules.
Q15: What is SNI (Server Name Indication), and why is ECH (Encrypted Client Hello) critical?
ANSWER:
Server Name Indication (SNI) is a TLS extension where the client indicates the specific target hostname inside the unencrypted ClientHello packet, allowing the host server to present the appropriate SSL certificate when sharing an IP address.
PRIVACY LEAKAGE:
Because SNI is sent in plaintext, intermediate network observers (ISPs, state firewalls, eavesdroppers) can inspect which domain name a user is visiting, even though subsequent HTTP payload data is fully encrypted.
REMEDIATION (ECH):
Encrypted Client Hello (ECH) encrypts the sensitive portion of the ClientHello (including SNI) using a public key published by the destination domain in its DNS records (HTTPS/SVCB records), concealing visited hostnames from network eavesdroppers.
Q16: Compare Symmetric and Asymmetric encryption algorithms with examples.
ANSWER:
β’ Symmetric Encryption: Uses the identical secret key for both encryption and decryption. Highly optimized in hardware (e.g., AES-NI instructions); ideal for bulk data.
- Algorithms: AES-256, ChaCha20, 3DES.
β’ Asymmetric Encryption: Uses a mathematically paired public and private key. Public key encrypts/verifies; private key decrypts/signs. Computationally expensive; ideal for digital signatures, identity validation, and key exchanges.
- Algorithms: RSA-4096, ECC (ECDSA, Ed25519), Diffie-Hellman.
Q17: What is the difference between AES-CBC and AES-GCM modes?
ANSWER:
β’ AES-CBC (Cipher Block Chaining): Encrypts fixed-size 128-bit blocks where each plaintext block is XORed with the preceding ciphertext block. Requires an Initialization Vector (IV) and PKCS#7 padding. Provides confidentiality ONLY; lacks built-in integrity checking and is vulnerable to padding oracle attacks.
β’ AES-GCM (Galois/Counter Mode): An Authenticated Encryption with Associated Data (AEAD) stream-cipher mode. Combines counter mode encryption with universal hashing over a Galois field to generate both ciphertext and an authentication tag (GMAC), guaranteeing confidentiality and integrity simultaneously.
Q18: What makes a cryptographic hash collision-resistant vs. preimage-resistant?
ANSWER:
β’ Preimage Resistance (One-Way): Given hash output h, it is computationally infeasible to find any input m such that Hash(m) = h. (Security level: ~2^256 for a 256-bit hash).
β’ Second Preimage Resistance: Given a specific input m1, it is computationally infeasible to find a distinct m2 (m1 != m2) such that Hash(m1) = Hash(m2).
β’ Collision Resistance: It is computationally infeasible to find ANY arbitrary pair m1 and m2 such that Hash(m1) = Hash(m2). Bound by the Birthday Paradox, reducing collision security to half the hash length (e.g., 2^128 operations for a 256-bit hash).
Q19: Explain Perfect Forward Secrecy (PFS).
ANSWER:
Perfect Forward Secrecy (PFS) ensures that the compromise of a server's long-term private key does not compromise past encrypted session traffic.
PFS derives temporary session keys using ephemeral key exchanges (ECDHE). Once the communication terminates, ephemeral private keys are erased from RAM. An adversary who records encrypted packets and later steals the server's long-term certificate private key cannot decrypt historical sessions because the ephemeral private keys no longer exist.
Q20: How does a digital signature work from a mathematical/procedural perspective?
ANSWER:
1. Signing Process:
- Sender hashes message M: H = Hash(M).
- Sender encrypts hash H using their Private Key: S = Encrypt(PrivKey, H).
- Package containing [Message M || Signature S] is transmitted.
2. Verification Process:
- Receiver independently hashes received message: H' = Hash(M).
- Receiver decrypts signature S using Sender's Public Key: H'' = Decrypt(PubKey, S).
- Receiver compares: If H' == H'', the signature is valid, confirming Message Integrity, Authentication, and Non-Repudiation.
Q21: Describe the structural layout and verification path of an X.509 Certificate.
ANSWER:
An X.509 v3 certificate includes: Version, Serial Number, Signature Algorithm, Issuer CA, Validity Period (NotBefore/NotAfter), Subject (Owner), Subject Public Key Info, and Extensions (Subject Alternative Names - SAN, Key Usage).
VERIFICATION PATH (CHAIN OF TRUST):
Leaf Certificate β Intermediate CA Certificate β Root CA Certificate.
The client validates that:
1. Each certificate is cryptographically signed by the public key of the CA directly above it.
2. The current timestamp falls within the Validity Period.
3. The accessed domain matches the Subject Alternative Name (SAN).
4. The Root CA resides in the operating system / browser trusted root trust store.
Q22: What are CRLs and OCSP, and what is OCSP Stapling?
ANSWER:
β’ CRL (Certificate Revocation List): A periodically published list of revoked certificate serial numbers signed by the CA. Bottlenecks: Large file downloads, delayed updates.
β’ OCSP (Online Certificate Status Protocol): Real-time lookup protocol where browsers query the CA responder directly. Bottlenecks: Exposes client browsing history to CAs; introduces connection latency.
β’ OCSP Stapling: The web server queries the CA's OCSP responder itself on a recurring schedule and "staples" the time-stamped, CA-signed OCSP response directly to the TLS handshake, resolving client privacy concerns and eliminating lookup latency.
Q23: What is Certificate Transparency (CT), and what are CT Logs?
ANSWER:
Certificate Transparency (RFC 6962) is an open framework monitoring SSL/TLS certificate issuance. Certificate Authorities must submit every issued certificate to publicly auditable, append-only, tamper-evident cryptographic Merkle Tree logs (CT Logs) before browsers consider them valid.
CT allows domain owners to monitor global issuance logs and identify rogue, misissued, or fraudulent certificates created for their corporate domains.
Q24: What is a Padding Oracle Attack (e.g., POODLE)?
ANSWER:
An attack against block ciphers operating in CBC mode. When an application decrypts ciphertext and returns distinguishable errors based on whether the cryptographic PKCS#7 padding was valid or invalid, it functions as an "oracle."
By altering bytes in the preceding ciphertext block and submitting requests to the server, an adversary analyzes the error responses to deduce the decrypted plaintext byte-by-byte without cracking the private key.
Q25: Explain the mathematical basis of Elliptic Curve Cryptography (ECC) compared to RSA.
ANSWER:
β’ RSA: Relies on the computational hardness of Integer Factorization: given n = p * q, factoring large composite primes is sub-exponential.
β’ ECC: Relies on the Elliptic Curve Discrete Logarithm Problem (ECDLP): given points P and Q on an algebraic curve y^2 = x^3 + ax + b such that Q = k * P, computing scalar k is fully exponential.
ADVANTAGE: ECC achieves equivalent cryptographic strength with significantly smaller key sizes (e.g., a 256-bit ECC key matches a 3072-bit RSA key), reducing computational overhead, memory, and packet bandwidth.
Q26: What is Salting, Peppering, and Key Stretching in password storage?
ANSWER:
β’ Salt: A cryptographically random unique value generated per user and stored alongside the password hash in the database. Neutralizes pre-computed rainbow table attacks.
β’ Pepper: A secret cryptographic key stored separately from the database (e.g., inside an HSM). Appended to passwords before hashing. If the database leaks, hashes remain uncrackable without the pepper.
β’ Key Stretching: Running password hashes through thousands of iterations of memory-hard, compute-heavy algorithms (Argon2id, bcrypt, PBKDF2) to slow down GPU/ASIC brute-force attempts.
Q27: What are the key properties of Diffie-Hellman Key Exchange, and what is the Man-in-the-Middle risk?
ANSWER:
Diffie-Hellman allows two parties with zero prior shared secrets to establish a shared secret over an insecure channel via modular arithmetic:
Shared Secret K = (g^a mod p)^b mod p = (g^b mod p)^a mod p.
MAN-IN-THE-MIDDLE VULNERABILITY:
Pure Diffie-Hellman does not authenticate participants. An active attacker can intercept public keys, execute two separate DH exchanges (one with client, one with server), and transparently decrypt all traffic. To achieve security, it must be paired with digital certificates (e.g., ECDHE signed with RSA/ECDSA).
Q28: What is Zero-Knowledge Proof (ZKP)?
ANSWER:
A cryptographic method by which a prover can prove to a verifier that a statement is true without conveying any information apart from the fact that the statement is true.
CRITICAL PROPERTIES:
1. Completeness: If the statement is true and both parties are honest, the verifier will be convinced.
2. Soundness: A cheating prover cannot convince an honest verifier of a false statement.
3. Zero-Knowledge: The verifier learns nothing other than the truth of the statement (e.g., proving identity without revealing the password).
Q29: How does Post-Quantum Cryptography (PQC) differ from Classical Cryptography?
ANSWER:
A fault-tolerant quantum computer executing Shor's Algorithm breaks RSA, Diffie-Hellman, and ECC in polynomial time.
β’ Post-Quantum Cryptography: Modern classical algorithms designed to execute on standard classical computers that are mathematically resistant to both classical and quantum computing attacks.
β’ NIST Finalized Standards:
- FIPS 203: ML-KEM (Module-Lattice Key Encapsulation / CRYSTALS-Kyber).
- FIPS 204: ML-DSA (Module-Lattice Digital Signatures / CRYSTALS-Dilithium).
- FIPS 205: SLH-DSA (Stateless Hash-Based Digital Signatures / SPHINCS+).
Q30: What is an HSM, and how does it ensure cryptographic security?
ANSWER:
A Hardware Security Module (HSM) is a dedicated, tamper-resistant physical appliance designed to securely manage, process, and store cryptographic keys.
ASSURANCE CONTROLS:
β’ Zeroization: Physical sensors trigger automated erasure of on-chip keys if enclosure breach or temperature/voltage tampering is detected.
β’ Non-Exportable Keys: Cryptographic private keys are generated inside the silicon and cannot be exported in plaintext.
β’ Offloaded Cryptography: Signs and encrypts inside the secure boundary (certified under FIPS 140-2 / 140-3 Level 3/4).
Q31: Explain SQL Injection (SQLi) and the proper architectural remediation.
ANSWER:
SQL Injection occurs when untrusted user input is directly concatenated into a dynamic SQL database query, altering the query's structural execution logic.
Attack Vector: ' OR '1'='1' --
ARCHITECTURAL REMEDIATION:
1. Parameterized Queries (Prepared Statements): Binds user input strictly as data values, passing them to the database engine after query compilation.
2. Object-Relational Mapping (ORM): Employs parameterized abstraction libraries (e.g., Hibernate, SQLAlchemy).
3. Least Privilege: Restrict database user account permissions to required operational tables only.
Q32: Differentiate between Stored, Reflected, and DOM-based Cross-Site Scripting (XSS).
ANSWER:
β’ Stored XSS: Malicious script is permanently saved in the application database (e.g., profile field, forum comment) and executed in the browser of any user requesting that record.
β’ Reflected XSS: Malicious script is delivered in an HTTP request (e.g., a search query parameter) and reflected back in the immediate HTTP response without database storage.
β’ DOM-Based XSS: Vulnerability exists entirely client-side. JavaScript reads data from an untrusted source (e.g., location.hash) and passes it to an unsafe sink (e.g., innerHTML, document.write) without backend interaction.
Q33: How does Cross-Site Request Forgery (CSRF) work, and how is it prevented?
ANSWER:
CSRF forces an authenticated victim's browser to execute state-changing actions on a target web application where they maintain active sessions, exploiting the browser's automatic inclusion of ambient credentials (session cookies).
PREVENTION:
1. Anti-CSRF Tokens: Cryptographically random, unique tokens tied to the user session, validated on every state-changing request (POST/PUT/DELETE).
2. SameSite Cookie Attribute: Setting SameSite=Strict or SameSite=Lax prevents browsers from attaching cookies to cross-origin requests.
3. Re-Authentication: Enforcing MFA or password verification for critical operations.
Q34: What is Server-Side Request Forgery (SSRF), and why is it dangerous in cloud environments?
ANSWER:
SSRF occurs when an attacker manipulates a web server into generating unauthorized HTTP/network requests to an arbitrary internal or external resource.
CLOUD ENVIRONMENT THREAT:
Attackers target the local link-local Instance Metadata Service (http://169.254.169.254/latest/meta-data/) on AWS, Azure, or GCP to extract temporary IAM role credentials, compromising entire cloud subscriptions.
REMEDIATION: Implement strict URL parsing allowlists, block private RFC 1918 ranges at the egress firewall, and enforce AWS IMDSv2 (session-token based).
Q35: Explain CORS (Cross-Origin Resource Sharing) misconfigurations.
ANSWER:
Cross-Origin Resource Sharing (CORS) relaxes the browser's Same-Origin Policy (SOP) via HTTP response headers.
MISCONFIGURATION RISKS:
β’ Reflecting arbitrary Origin headers alongside Access-Control-Allow-Credentials: true.
β’ Permitting Access-Control-Allow-Origin: null.
EXPLOITATION: A malicious third-party website can execute authenticated cross-origin JavaScript requests to the vulnerable API and exfiltrate sensitive JSON responses.
Q36: What is Insecure Direct Object Reference (IDOR / BOLA)?
ANSWER:
Broken Object Level Authorization (BOLA/IDOR) occurs when an application references internal database keys directly in user-facing endpoints (e.g., /api/user/1042/statement) without validating whether the authenticated user possesses authorization to access that object.
REMEDIATION: Implement server-side access-control checks on every database query validating that the requesting session owner owns or is authorized to view the requested record.
Q37: What is XML External Entity (XXE) Injection?
ANSWER:
XXE targets applications parsing XML documents where the XML parser processes external entity declarations:
<!DOCTYPE foo [<!ENTITY xxe SYSTEM "file:///etc/passwd">]>
<data>&xxe;</data>
IMPACT: Local file disclosure, internal network port scanning (SSRF), and Denial of Service (Billion Laughs entity expansion attack).
REMEDIATION: Configure XML parsers to disable Document Type Definitions (DTDs) and external entity resolution entirely.
Q38: Describe Content Security Policy (CSP) and common bypasses.
ANSWER:
Content Security Policy (CSP) is an HTTP header declaring authorized sources of content (scripts, styles, frames) browsers are permitted to load:
Content-Security-Policy: default-src 'self'; script-src 'self' https://trusted.cdn.com;
COMMON BYPASSES:
1. Using unsafe-inline or unsafe-eval directives.
2. Wildcard domain sources (script-src *).
3. Whitelisting CDNs hosting vulnerable libraries with JSONP callback endpoints.
Q39: What is Command Injection vs. Code Injection?
ANSWER:
β’ Command Injection: Attacker input alters parameters passed directly to the operating system shell (e.g., via system(), exec(), Runtime.getRuntime().exec()), executing OS shell utilities (whoami, bash).
β’ Code Injection: Attacker input alters code evaluated inside the application runtime engine itself (e.g., eval(), assert()), executing arbitrary programming language statements within the interpreter thread.
Q40: Explain the secure configuration flags for HTTP cookies.
ANSWER:
β’ Secure: Mandates that browsers transmit the cookie exclusively over encrypted HTTPS connections.
β’ HttpOnly: Blocks client-side scripts (JavaScript document.cookie) from reading the cookie, mitigating credential theft via XSS.
β’ SameSite: Governs whether cookies are transmitted with cross-site requests (Strict, Lax, or None), mitigating CSRF.
Q41: What is Directory Traversal, and how is it addressed?
ANSWER:
Directory (Path) Traversal allows attackers to access arbitrary files on the filesystem by injecting ../ dot-dot-slash sequence strings into file path parameters (e.g., /download?file=../../../../etc/passwd).
REMEDIATION:
1. Use mapped indexes or randomized UUID keys instead of user-supplied filenames.
2. Resolve canonical absolute paths (realpath) and verify that the target path begins strictly within the intended root directory.
Q42: What is Server-Side Template Injection (SSTI)?
ANSWER:
SSTI occurs when user input is concatenated directly into template strings rendered by engines (Jinja2, Twig, Velocity) rather than passed as data parameters.
Exploit Verification: Submitting {{7*7}} returns 49.
Escalation: Attackers traverse the template engine's class hierarchy to instantiate underlying operating system command execution objects, achieving full Remote Code Execution (RCE).
Q43: How does HTTP Request Smuggling work?
ANSWER:
Occurs when frontend reverse proxies and backend servers disagree on request boundaries due to ambiguities in handling Content-Length (CL) and Transfer-Encoding: chunked (TE) headers.
β’ CL.TE: Frontend uses Content-Length; Backend uses Transfer-Encoding.
β’ TE.CL: Frontend uses Transfer-Encoding; Backend uses Content-Length.
IMPACT: Attackers prepend partial requests to the request queue, hijacking the subsequent user's request to capture credentials or poison caches.
Q44: What is Clickjacking, and how is it prevented?
ANSWER:
Clickjacking transparently overlays an authentic target website inside a transparent <iframe> over a malicious decoy UI. When the victim clicks the visible decoy, they inadvertently trigger actions on the underlying hidden frame.
PREVENTION:
1. Content-Security-Policy: frame-ancestors 'none'; (or 'self').
2. X-Frame-Options: DENY or SAMEORIGIN HTTP headers.
Q45: What is Mass Assignment / Auto-binding vulnerability?
ANSWER:
Occurs in modern web frameworks (Ruby on Rails, Spring, Express) that automatically bind client-submitted JSON/form fields directly to internal database entity models.
ATTACK: In an account update request, an attacker injects {"is_admin": true}. The framework automatically maps the property, elevating user privileges.
REMEDIATION: Use Data Transfer Objects (DTOs) with strict property allowlists.
Q46: What is the Windows API hooking technique, and how do EDRs use it?
ANSWER:
Endpoint Detection and Response (EDR) agents inject user-mode monitoring libraries into newly spawned processes. The EDR modifies the first bytes of target system APIs inside ntdll.dll (e.g., NtCreateThreadEx, NtAllocateVirtualMemory) with an unconditional JMP instruction redirecting execution to the EDR's inspection engine to analyze memory buffers before returning execution.
Q47: Explain the difference between Process Hollowing and Process Injection.
ANSWER:
β’ Process Injection: Writes shellcode or a DLL path into the virtual memory space of an existing, actively executing process (via VirtualAllocEx, WriteProcessMemory) and spawns an execution thread via CreateRemoteThread.
β’ Process Hollowing: Spawns a legitimate binary in a suspended state (CREATE_SUSPENDED), unmaps the authentic executable memory using NtUnmapViewOfSection, allocates and writes malicious replacement PE headers into that address, updates the thread entry point, and resumes execution.
Q48: What is AMSI (Antimalware Scan Interface), and how is it bypassed?
ANSWER:
Antimalware Scan Interface (AMSI) is an interface standard allowing script engines (PowerShell, WScript) to pass scripts to installed antivirus engines in memory prior to execution.
BYPASS MECHANISM: Because AMSI runs inside the user-mode memory space of the PowerShell process, attackers with local execution rights patch the AmsiScanBuffer function memory bytes (e.g., overwriting assembly instructions with RET or error returns), causing AMSI to immediately return AMSI_RESULT_CLEAN.
Q49: Differentiate between a Rootkit, a Bootkit, and a Trojan.
ANSWER:
β’ Trojan: Malware masquerading as legitimate software running in user space.
β’ Rootkit: Stealth malware executing with kernel-level privileges designed to hide processes, files, and network sockets by modifying kernel structures (SSDT, DKOM).
β’ Bootkit: An advanced rootkit that infects the Master Boot Record (MBR), Volume Boot Record (VBR), or UEFI firmware, securing execution before the operating system kernel boots.
Q50: How does Ransomware execute its encryption routines, and what are Volume Shadow Copies?
ANSWER:
Ransomware generates ephemeral symmetric keys (e.g., AES-GCM) to rapidly encrypt target local files, then encrypts those symmetric keys using the attacker's embedded asymmetric public key (RSA/ECC).
Volume Shadow Copies (VSS) are point-in-time file recovery snapshots managed by Windows. Ransomware eliminates recovery options early by executing vssadmin.exe delete shadows /all /quiet or equivalent WMI invocations.
Q51: Explain Windows Access Tokens and how Token Impersonation (Pass-the-Token) works.
ANSWER:
Windows Access Tokens define the security context of a process or thread (user SID, group memberships, privileges like SeDebugPrivilege).
TOKEN IMPERSONATION: An attacker with administrative privileges clones a token from an existing process owned by another user (e.g., domain admin) using DuplicateTokenEx and assigns it to a newly spawned thread, inheriting administrative capabilities without knowing the user's password.
Q52: What is Living-off-the-Land (LotL), and what are LOLBins?
ANSWER:
Living-off-the-Land is an evasion strategy where adversaries avoid downloading custom compiled binaries, instead repurposing trusted, signed operating system utilities (Living-off-the-Land Binaries - LOLBins).
Examples:
β’ certutil.exe: Abused to download remote payloads and decode base64 strings.
β’ mshta.exe: Abused to execute inline VBScript or JavaScript payloads.
β’ rundll32.exe: Abused to execute malicious exported functions from unbacked DLLs.
Q53: What is the difference between static and dynamic malware analysis?
ANSWER:
β’ Static Analysis: Inspecting a binary without running it. Involves evaluating cryptographic hashes, Portable Executable (PE) headers, import/export tables, string analysis, and disassembly/decompilation (Ghidra, IDA Pro).
β’ Dynamic Analysis: Executing malware inside an instrumented sandbox to monitor runtime activity: spawned processes, registry changes, dropped files, API invocations, and network C2 connections.
Q54: What is a Buffer Overflow, and how do ASLR and DEP/NX mitigate it?
ANSWER:
A Buffer Overflow occurs when a program writes more data into a fixed-length memory buffer than allocated, overwriting adjacent stack memory (saved frame pointers and the function Return Address).
DEFENSES:
β’ DEP/NX (Data Execution Prevention): Marks memory regions (stack, heap) as non-executable. Injected shellcode generates a CPU access violation exception when execution is attempted.
β’ ASLR (Address Space Layout Randomization): Randomizes memory offsets (stack, heap, libraries) upon each execution, preventing attackers from hardcoding return addresses.
Q55: What is EDR "Blinding" or Unhooking?
ANSWER:
EDRs monitor process activity by placing inline hooks on system libraries (ntdll.dll) in user-mode space.
UNHOOKING: Attackers bypass hooks by:
1. Reloading a clean, unhooked copy of ntdll.dll from disk over the modified in-memory section.
2. Executing Direct Syscalls: Using assembly stubs to execute the syscall instruction directly into the kernel, bypassing user-mode hooked wrappers completely.
Q56: What is Windows Kerberos Pass-the-Ticket (PtT) vs. Pass-the-Hash (PtH)?
ANSWER:
β’ Pass-the-Hash (PtH): Uses an extracted NTLM password hash to authenticate over NTLM-supported protocols (SMB, RPC) without ever cracking the plaintext password.
β’ Pass-the-Ticket (PtT): Extracts valid Kerberos Ticket Granting Tickets (TGT) or Service Tickets (TGS) from the memory of the Local Security Authority Subsystem Service (lsass.exe) and injects them into the current session to access domain resources.
Q57: What are Golden and Silver Tickets in Active Directory?
ANSWER:
β’ Golden Ticket: A forged Kerberos TGT created by an attacker using the compromised password hash of the domain's KRBTGT account. Grants unrestricted administrative privileges across the entire Active Directory domain.
β’ Silver Ticket: A forged Kerberos Service Ticket (TGS) created using the password hash of an individual service account (e.g., MSSQL). Grants access only to that specific service, generating zero traffic to the Domain Controller.
Q58: How do you distinguish between legitimate and malicious PowerShell activity?
ANSWER:
Malicious indicators include:
1. Execution Flags: -EncodedCommand (Base64 execution), -ExecutionPolicy Bypass, -WindowStyle Hidden, -NoProfile.
2. Download Cradles: Invocations using IEX (New-Object Net.WebClient).DownloadString(...).
3. Anomalous Parentage: PowerShell spawned by unusual processes such as winword.exe, excel.exe, or w3wp.exe.
Q59: Explain the purpose and evasion of Linux auditd.
ANSWER:
auditd is the native Linux auditing daemon tracking system calls, file modifications, and process executions based on configured kernel audit rules.
EVASION: Attackers gaining root privileges execute auditctl -e 0 to disable kernel logging, truncate log files (/var/log/audit/audit.log), or load kernel rootkits to suppress auditing.
COUNTERMEASURE: Forward audit logs immediately to a remote, write-once SIEM.
Q60: What is DLL Search Order Hijacking?
ANSWER:
When a Windows application loads a dynamic library without specifying an absolute path, Windows searches directories in a predefined order:
1. Application directory β 2. System directory β 3. 16-bit directory β 4. Windows directory β 5. Current directory β 6. PATH directories.
EXPLOIT: An attacker places a malicious DLL with the expected name inside a directory searched prior to the legitimate library. When the trusted application starts, it loads and executes the attacker's DLL.
Q61: What is the difference between a True Positive, False Positive, True Negative, and False Negative?
ANSWER:
β’ True Positive (TP): An authentic attack occurred, and the detection system correctly generated an alert.
β’ False Positive (FP): A benign, authorized action occurred, but the detection system incorrectly flagged it as an attack.
β’ True Negative (TN): Normal benign activity occurred, and the system correctly produced no alert.
β’ False Negative (FN): An authentic attack occurred, but the security system failed to detect it.
Q62: Explain the stages of the Cyber Kill Chain vs. MITRE ATT&CK Framework.
ANSWER:
β’ Cyber Kill Chain (Lockheed Martin): A linear, sequential 7-phase model: Reconnaissance β Weaponization β Delivery β Exploitation β Installation β Command & Control β Actions on Objectives.
β’ MITRE ATT&CK: A non-linear, granular knowledge base of real-world adversary Tactics (operational goals) and Techniques (specific methods), mapping behaviors regardless of sequence.
Q63: How does a SIEM correlate events across heterogeneous sources?
ANSWER:
1. Ingestion & Parsing: Logstash or forwarders ingest disparate log streams (syslog, JSON, Windows Events).
2. Schema Normalization: Maps divergent vendor fields (e.g., src, SourceAddress) into unified schemas (Elastic Common Schema / OCSF).
3. Stateful Correlation Rules: Evaluates conditions across time windows (e.g., 5 failed logons on host A within 60 seconds followed by 1 successful logon and immediate outbound SMB connection to host B).
Q64: What is the Pyramid of Pain?
ANSWER:
Defines the difficulty an adversary experiences when a defender blocks their indicators:
β’ Hash Values (Trivial): Trivial to alter by changing a single byte.
β’ IP Addresses (Easy): Rotated cheaply via proxies/VPNs.
β’ Domain Names (Simple): Fast-flux DNS and dynamic registration.
β’ Network/Host Artifacts (Annoying): Modifying C2 URIs or registry keys.
β’ Tools (Challenging): Modifying software code to evade detection.
β’ TTPs (Tough): Forcing the adversary to re-engineer their entire operational methodology.
Q65: What are the Windows Event IDs for process creation, failed logon, and service installation?
ANSWER:
β’ Event ID 4624: Successful Account Logon.
β’ Event ID 4625: Failed Account Logon.
β’ Event ID 4688: A New Process Has Been Created.
β’ Event ID 7045: A Service Was Installed on the System (Persistence).
β’ Sysmon Event ID 1: Process Creation (Includes hashes, command lines, parent PIDs).
β’ Sysmon Event ID 3: Network Connection Initiated.
β’ Sysmon Event ID 8: CreateRemoteThread (Injection).
Q66: How do you detect Beaconing behavior in network firewall or proxy logs?
ANSWER:
Command and Control (C2) beaconing represents periodic outbound heartbeat callbacks.
DETECTION:
β’ Delta-Time Clustering: Calculating time deltas between outbound requests to identical destination IPs; regular intervals show tight statistical clusters.
β’ Jitter Analysis: Adversaries inject randomized jitter (e.g., 60s +/- 20%). Statistical variance analysis flags intervals adhering to uniform randomized distributions.
β’ Fixed Payload Sizes: Consistent request and response byte sizes over time.
Q67: Explain SOAR and how it differs from a SIEM.
ANSWER:
β’ SIEM (Security Information & Event Management): Ingests high-throughput logs, parses fields, indexes data, and triggers alerts based on correlation rules.
β’ SOAR (Security Orchestration, Automation, & Response): Consumes alerts from SIEMs, enriches indicators via threat intel APIs, and executes automated Playbooks (e.g., auto-isolating compromised endpoints, revoking tokens, blocking firewall IPs) to drastically lower MTTR.
Q68: What is Threat Hunting, and how do you build a hypothesis?
ANSWER:
Threat Hunting is the proactive, human-led pursuit of adversaries who have bypassed automated security alerts.
HYPOTHESIS FORMULATION:
Anchored in threat intelligence or environmental changes:
"Adversaries are leveraging living-off-the-land binaries (certutil.exe) to download secondary payloads, bypassing our perimeter proxy filters."
The hunter executes queries across endpoint telemetry auditing certutil execution parameters.
Q69: What is a Memory Dump, and what artifacts can you find in it using Volatility?
ANSWER:
A memory dump is an image of physical volatile RAM captured while a system is live.
ARTIFACTS EXTRACTED (VIA VOLATILITY 3):
β’ Unlinked / hidden processes (comparing pslist against psscan).
β’ Injected memory pages marked PAGE_EXECUTE_READWRITE (malfind).
β’ Terminated and active network sockets (netscan).
β’ Unencrypted password hashes and Kerberos tickets dumped from LSASS memory space.
Q70: How do you distinguish between brute-force attacks and password spraying?
ANSWER:
β’ Brute-Force: Targeting a single account with thousands of rapid password attempts. Rapidly triggers account lockout thresholds.
β’ Password Spraying: Testing a single common password (e.g., Winter2026!) across thousands of distinct user accounts, spaced out over hours to remain below account lockout thresholds.
Q71: What is User and Entity Behavior Analytics (UEBA)?
ANSWER:
UEBA establishes baselines of normal behavior for users, devices, and service accounts using machine learning models. It flags statistical anomalies (e.g., an engineer downloading customer databases at 3 AM from an anomalous geolocation) rather than relying exclusively on static detection rules.
Q72: Explain the purpose of the Sysinternals Suite in incident investigation.
ANSWER:
β’ Process Explorer: Inspects process trees, verified signatures, DLL handles, and unbacked memory regions.
β’ Process Monitor (Procmon): Real-time capture of filesystem, registry, and thread activity.
β’ Autoruns: Comprehensive inspection of all startup persistence hooks (Run keys, services, scheduled tasks, WMI consumers).
Q73: What is Sigma, and how does it relate to YARA?
ANSWER:
β’ YARA: Pattern-matching rule format applied to files, byte sequences, or memory dumps to identify and classify malware samples.
β’ Sigma: A standardized, open, vendor-neutral rule format describing log events and SIEM queries. Sigma rules compile into native Splunk SPL, Elastic EQL, or Microsoft Sentinel KQL queries.
Q74: What is Dwell Time, and why is it a critical SOC metric?
ANSWER:
Dwell Time is the duration between an adversary's initial unauthorized access and their eventual detection by security teams. Reducing dwell time directly reduces the attacker's window to escalate privileges, move laterally, establish persistence, and execute exfiltration or encryption.
Q75: What are the key stages of an Incident Response lifecycle according to NIST SP 800-61?
ANSWER:
1. Preparation: Tool deployment, training, call trees, security baselines.
2. Detection & Analysis: Alert verification, precursor evaluation, scoping.
3. Containment, Eradication, & Recovery: Isolating affected subnets, purging malware footholds, restoring clean backups.
4. Post-Incident Activity: Lessons learned review, updating detection engineering rules, root-cause documentation.
Q76: Explain the Cloud Shared Responsibility Model across IaaS, PaaS, and SaaS.
ANSWER:
β’ IaaS (e.g. AWS EC2): Cloud provider secures physical hardware, hypervisors, and data centers. The customer is responsible for guest OS, networking firewall rules, IAM, patches, applications, and data.
β’ PaaS (e.g. AWS RDS): Cloud provider secures hardware, OS, and database engine runtimes. The customer is responsible for application logic, access configurations, and data.
β’ SaaS (e.g. Microsoft 365): Cloud provider manages the entire application stack. The customer is responsible for data classification, user identity governance, and access entitlements.
Q77: What is an AWS IAM Role, and how does AssumeRole operate?
ANSWER:
An IAM Role is an identity with specific permission policies that can be assumed temporarily by an authorized principal (users, services like EC2, or federated identities).
AssumeRole calls the AWS Security Token Service (STS), returning temporary credentials consisting of an AccessKeyId, SecretAccessKey, and SessionToken with a defined expiration window.
Q78: What is the Confused Deputy Problem in cloud security?
ANSWER:
Occurs when an entity lacking permission coerces a privileged third-party service (the deputy) into performing actions on its behalf.
CLOUD SCENARIO: A third-party SaaS provider assumes roles in customer accounts. If the trust policy lacks an sts:ExternalId condition, an attacker can input another customer's Role ARN into the SaaS service, forcing the SaaS provider to assume that role and leak private resources.
Q79: What is the AWS Instance Metadata Service (IMDS), and why should you enforce IMDSv2?
ANSWER:
IMDS provides EC2 instances with configuration metadata and temporary IAM credentials via link-local address 169.254.169.254.
β’ IMDSv1: Uses basic HTTP GET requests, making it vulnerable to Server-Side Request Forgery (SSRF) credential theft.
β’ IMDSv2: Requires an initial HTTP PUT request with custom headers to obtain a session token, then requires that token in subsequent GET requests. Standard SSRF vulnerabilities cannot execute arbitrary PUT requests with custom headers, neutralizing credential harvesting.
Q80: How do Kubernetes Pod Security Standards (PSS) enforce workload isolation?
ANSWER:
PSS defines three isolation profiles enforced via the Pod Security Admission controller:
β’ Privileged: Unrestricted permissions (designed for system CNI daemons).
β’ Baseline: Prevents known privilege escalations; blocks host network, host PID, and privileged container flags.
β’ Restricted: Hardened profile; mandates runAsNonRoot: true, drops ALL capabilities, enforces readOnlyRootFilesystem, and requires RuntimeDefault seccomp profiles.
Q81: How does a Container Breakout vulnerability occur?
ANSWER:
A container breakout allows an attacker inside a container to break isolation and execute code directly on the host operating system.
COMMON CAUSES:
1. Mounting the host Docker socket (/var/run/docker.sock) inside the container.
2. Launching containers with the --privileged flag (re-enabling CAP_SYS_ADMIN).
3. Mounting sensitive host filesystems (e.g., -v /:/host).
4. Exploiting kernel vulnerabilities (Dirty COW) or container runtime bugs (runC CVE-2019-5736).
Q82: Differentiate between OAuth 2.0, OpenID Connect (OIDC), and SAML.
ANSWER:
β’ OAuth 2.0: An AUTHORIZATION framework. Issues access tokens granting applications scoped access to user resources without sharing passwords.
β’ OpenID Connect (OIDC): An AUTHENTICATION identity layer built on top of OAuth 2.0. Issues an ID Token (JWT) confirming the user's identity.
β’ SAML: An XML-based federated authentication standard predominantly used in enterprise Single Sign-On (SSO) architectures.
Q83: Explain the Zero Trust Architecture (ZTA) core philosophy.
ANSWER:
Zero Trust operates under the principle: "Never Trust, Always Verify."
CORE TENETS:
1. Assume Breach: Operate as if an adversary is already present inside the network.
2. Verify Explicitly: Authenticate and authorize every access request based on identity, device posture, location, and risk signals.
3. Least Privilege: Restrict access using Just-In-Time (JIT) and Just-Enough-Access (JEA) policies.
Q84: What are the key security risks in an Infrastructure as Code (IaC) pipeline?
ANSWER:
1. Hardcoded Plaintext Secrets: API keys and passwords embedded directly in .tf or .yaml manifests.
2. Overly Permissive Cloud Configurations: Insecure defaults such as open security groups (0.0.0.0/0 on port 22) or unencrypted S3 buckets.
3. State File Exposure: Storing unencrypted terraform.tfstate files containing cleartext database passwords.
4. Configuration Drift: Manual changes applied in cloud consoles that diverge from Git repository baselines.
Q85: What is a Service Mesh, and how does it provide security?
ANSWER:
A Service Mesh (Istio, Linkerd) manages microservice communication via sidecar proxies deployed alongside application containers.
SECURITY CONTROLS:
β’ Transparent mutual TLS (mTLS): Enforces automatic cryptographic encryption and mutual authentication for all service-to-service traffic.
β’ Granular Layer 7 Authorization Policies: Restricts which services can communicate.
β’ Uniform Telemetry: Provides centralized auditing and tracing.
Q86: Explain the concept of Conditional Access Policies.
ANSWER:
Conditional Access evaluates contextual signals during authenticationβuser group, device compliance, IP reputation, impossible travelβbefore granting access.
If risk conditions trigger (e.g., login from an unmanaged laptop in a foreign jurisdiction), the policy enforces MFA or blocks authentication entirely.
Q87: What is the difference between CSPM and CWPP?
ANSWER:
β’ CSPM (Cloud Security Posture Management): Focuses on the cloud control plane. Audits configurations, compliance policies, and IAM permissions across cloud services (e.g., detecting unencrypted storage or missing MFA).
β’ CWPP (Cloud Workload Protection Platform): Focuses on the data plane and runtime. Provides threat detection, vulnerability management, and behavioral protection for active workloads (VMs, containers, serverless functions).
Q88: What is Cloud Lateral Movement, and how does it differ from On-Premises?
ANSWER:
β’ On-Premises: Relies on network protocols (SMB, RPC, SSH) and OS-level credential dumping (Pass-the-Hash, Kerberoasting) across local subnets.
β’ Cloud: Executes through cloud APIs, IAM role assumptions (sts:AssumeRole), token theft via metadata services, and control plane hopping rather than traditional network routing.
Q89: Explain CI/CD Pipeline Poisoning / Supply Chain Attacks.
ANSWER:
Occurs when an adversary compromises the automated build and release pipeline:
1. Dependency Poisoning: Injecting malicious packages into open registries (npm, PyPI) or exploiting typo-squatting.
2. Build Runner Compromise: Modifying GitHub Actions or GitLab CI build scripts to exfiltrate production deployment secrets.
3. Code-Signing Tampering: Stealing signing certificates to publish backdoored software updates (e.g., SolarWinds).
Q90: What is Microsegmentation?
ANSWER:
Microsegmentation divides data center and cloud environments into granular, secure zones down to individual workload and container interfaces.
By enforcing default-deny policies on east-west (lateral) traffic, workloads within the same subnet cannot communicate unless explicitly permitted by Layer 7 policy.
Q91: Differentiate between Threat, Vulnerability, and Risk.
ANSWER:
Formula: Risk = Threat x Vulnerability x Impact
β’ Vulnerability: An inherent flaw or weakness in system design, implementation, or configuration (e.g., an unpatched remote code execution bug).
β’ Threat: An external actor or event with the potential to exploit a vulnerability (e.g., an active ransomware syndicate).
β’ Risk: The potential for loss or operational disruption when a threat successfully exploits a vulnerability.
Q92: What are the key differences between NIST CSF, ISO/IEC 27001, and SOC 2?
ANSWER:
β’ NIST CSF: A voluntary, non-certifiable maturity framework structured around 6 core functions (Govern, Identify, Protect, Detect, Respond, Recover).
β’ ISO/IEC 27001: An internationally recognized, formal certification standard for an Information Security Management System (ISMS) (Clauses 4β10 + 93 Annex A controls).
β’ SOC 2: An attestation report conducted by licensed CPAs evaluating controls over a 3β12 month period based on AICPA Trust Services Criteria.
Q93: What is the difference between Disaster Recovery (DR) and Business Continuity Planning (BCP)?
ANSWER:
β’ Business Continuity Planning (BCP): Broad organizational strategy ensuring critical business operations continue during and after an operational disaster (encompasses personnel safety, facilities, physical supply chains).
β’ Disaster Recovery (DR): A technical subset of BCP focused specifically on restoring IT infrastructure, databases, servers, and network connectivity following an outage.
Q94: Explain RTO vs. RPO.
ANSWER:
β’ Recovery Time Objective (RTO): The maximum acceptable duration of time an application or system can remain offline before catastrophic business damage occurs.
β’ Recovery Point Objective (RPO): The maximum acceptable age of data that can be permanently lost due to a disaster, defining the required frequency of data backups.
Q95: What are the notification requirements under GDPR Article 33?
ANSWER:
In the event of a personal data breach, the data controller must notify the competent supervisory authority without undue delay and, where feasible, within 72 hours of becoming aware of the breach, unless the breach is unlikely to result in a risk to individual rights and freedoms.
Q96: What is Threat Modeling, and how does the STRIDE framework work?
ANSWER:
Threat modeling identifies security vulnerabilities during the architectural design phase.
STRIDE CATEGORIES:
β’ S - Spoofing: Impersonating an authentic user or service.
β’ T - Tampering: Modifying data in transit or storage.
β’ R - Repudiation: Denying an action took place without audit proof.
β’ I - Information Disclosure: Exposing confidential data to unauthorized parties.
β’ D - Denial of Service: Degrading or crashing service availability.
β’ E - Elevation of Privilege: Gaining unauthorized administrative permissions.
Q97: What is a Third-Party / Vendor Risk Assessment, and why is it conducted?
ANSWER:
Evaluating the security and compliance posture of external SaaS providers, suppliers, and contractors with access to corporate data.
ASSESSMENT METHODS: Auditing vendor SOC 2 Type II reports, ISO 27001 certifications, SIG security questionnaires, and automated continuous attack surface monitoring to prevent supply-chain breaches.
Q98: What is Prompt Injection in Large Language Models (LLMs)?
ANSWER:
Prompt injection occurs when an attacker crafts inputs that coerce an LLM into ignoring its original system instructions and guardrails.
β’ Direct Injection (Jailbreaking): User prompts the model directly to bypass safety constraints.
β’ Indirect Injection: The LLM processes untrusted external content (emails, web pages) containing hidden adversarial commands that execute within the model's privileged context.
Q99: What are the key security risks associated with Shadow AI?
ANSWER:
Employees uploading confidential code, intellectual property, customer PII, or internal financial data to unauthorized public AI services.
RISKS: Regulatory non-compliance (GDPR/DPDP), data leakage, and third-party AI vendors ingesting private enterprise data to train public foundation models.
Q100: Explain the concept of Data Loss Prevention (DLP) and its operational challenges.
ANSWER:
DLP systems monitor and control data flows (data in use on endpoints, data in motion across networks, data at rest in storage) using pattern matching and data fingerprinting to block unauthorized exfiltration.
CHALLENGES:
β’ High False-Positive Rates: Blocking legitimate business workflows.
β’ Encrypted Traffic: Inability to inspect HTTPS traffic without deploying TLS decryption proxies.
β’ Evasion: Bypasses via password-protected ZIP archives, steganography, or custom obfuscation.